/*
 *  AS IS License 
 * ==Naive Coders==
 */
package com.naivecoders.refex.functions;

import com.naivecoders.refex.FunctionFactory;

/**
 * This is merely a placeholder denoting value of function argument. This is
 * used by named function
 *
 * @author andrew
 */
public class ArgumentFunction extends AbstractFunction {

    public ArgumentFunction(FunctionFactory origin) {
        super(origin);
    }

    @Override
    public AbstractFunction evaluate(ListFunction x) throws InvocationException {
        throw new InvocationException("Argument function can't be evaluated");
    }

}
